
#include "RCore.h"
//#include "Object.h"
//#include "String.h"
#include "System/All"

// DEBUG.
#include "Debug.h"

using namespace Riccsson::System;

void Core::init()
{
	// Run all available static constructors
	// from all classes.
	for (int i = 0; i < Riccsson::System::_map_count; i++)
	{
		int static_class_pointer = Riccsson::System::_map_values2[i];

		if(static_class_pointer != 0)
		{
			_Static_Class_Method method = reinterpret_cast<_Static_Class_Method>(static_class_pointer);

			method();
		}
	}
}

void Core::release()
{
	Activator::_release();
}